package com.example.springbootv1.controller;

import com.example.springbootv1.pojo.Bills;
import com.example.springbootv1.service.BillsService;
import com.example.springbootv1.service.ProviderService;
import com.example.springbootv1.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/provider")
@CrossOrigin("*")
public class ProviderController {
    @Autowired
    private ProviderService providerService;

    /**
     * 查询列表
     * @return Result
     */
    @GetMapping("/list")
    public Result getList() {
        return Result.success(providerService.getList());
    }


}
